<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" href="favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>首页</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css?v=3.3.6">

    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="/static/admin/js/jquery.min.js"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/static/admin/js/bootstrap.min.js"></script>
    <style>
        .thumb_margin {
            margin-bottom: 5px;
        }
        .thumb_padding {
            padding: 1px 4px;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <br>
    <br>

    <p class="text-center">
        <img width="60%"  src="__IMG__/news_tm.png">
    </p>

    <br>
    <br>

    <div class="col-xs-12" style="margin-bottom: 10%">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="搜索"/>
            <span class="input-group-addon"><i class="glyphicon glyphicon-search"></i></span>
        </div>
    </div>

    <p class="col-xs-12 text-center">
        <a href="{:url('myorder')}" class="btn btn-success btn-lg">我的订单</a>
        <a href="{:url('search')}" class="btn btn-info btn-lg">我要投放</a>
    </p>

    <div class="col-xs-12" style="margin-top: 15px">
        <p class="text-muted lead" style="border-bottom: 1px solid gainsboro;">推荐媒体</p>
    </div>

    <div class="col-xs-12 thumb_padding">
        {volist name="account" id="vo"}
        <div class="col-xs-4 thumb_padding">
            <a href="#" class="thumbnail thumb_margin" wid="{$vo.id}">
                <img src="http://{$Think.server.http_host}/upload/{$vo.logo}" alt="">
            </a>
            <div class="text-center">{$vo.name}</div>
        </div>
        {/volist}
    </div>

</div>
<script>
    $(function(){
        $(".thumbnail").click(function(){
            window.location = "{:url('putad')}"+"?wid="+$(this).attr('wid');
        });
    })
</script>
</body>
</html>